package com.ruoyi.rsikManage.domain;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;

/**
 * 报备类型字典对象 t_report_type
 *
 * @author ruoyi
 * @date 2023-08-08
 */
public class TReportType extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * ID
     */
    private Long id;

    /**
     * 煤矿编码
     */
    @Excel(name = "煤矿编码")
    private String unitcode;

    /**
     * 报备类型
     */
    @Excel(name = "报备类型")
    private String reporttype;

    /**
     * 报备类型编码
     */
    @Excel(name = "报备类型编码")
    private String reporttypecode;

    /**
     * 排序
     */
    @Excel(name = "排序")
    private String sort;

    /**
     * 点击率
     */
    @Excel(name = "点击率")
    private String clickrate;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdate;

    /**
     * 修改时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "修改时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updatedate;

    /**
     * 删除时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "删除时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date deldate;

    /**
     * 删除人
     */
    @Excel(name = "删除人")
    private String delby;

    /**
     * 删除标志
     */
    @Excel(name = "删除标志")
    private Integer delflag;


    /**
     * 创建人
     */

    @Excel(name = "创建人", width = 30)
    private String createby;


    /**
     * 修改人
     */

    @Excel(name = "修改人", width = 30)
    private String updateby;


    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setUnitcode(String unitcode) {
        this.unitcode = unitcode;
    }

    public String getUnitcode() {
        return unitcode;
    }

    public void setReporttype(String reporttype) {
        this.reporttype = reporttype;
    }

    public String getReporttype() {
        return reporttype;
    }

    public void setReporttypecode(String reporttypecode) {
        this.reporttypecode = reporttypecode;
    }

    public String getReporttypecode() {
        return reporttypecode;
    }

    public void setSort(String sort) {
        this.sort = sort;
    }

    public String getSort() {
        return sort;
    }

    public void setClickrate(String clickrate) {
        this.clickrate = clickrate;
    }

    public String getClickrate() {
        return clickrate;
    }

    public void setCreatedate(Date createdate) {
        this.createdate = createdate;
    }

    public Date getCreatedate() {
        return createdate;
    }

    public void setUpdatedate(Date updatedate) {
        this.updatedate = updatedate;
    }

    public Date getUpdatedate() {
        return updatedate;
    }

    public void setDeldate(Date deldate) {
        this.deldate = deldate;
    }

    public Date getDeldate() {
        return deldate;
    }

    public void setDelby(String delby) {
        this.delby = delby;
    }

    public String getDelby() {
        return delby;
    }

    public void setDelflag(Integer delflag) {
        this.delflag = delflag;
    }

    public Integer getDelflag() {
        return delflag;
    }

    public String getCreateby() {
        return createby;
    }

    public void setCreateby(String createby) {
        this.createby = createby;
    }

    public String getUpdateby() {
        return updateby;
    }

    public void setUpdateby(String updateby) {
        this.updateby = updateby;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("unitcode", getUnitcode())
                .append("reporttype", getReporttype())
                .append("reporttypecode", getReporttypecode())
                .append("sort", getSort())
                .append("clickrate", getClickrate())
                .append("createdate", getCreatedate())
                .append("updatedate", getUpdatedate())
                .append("deldate", getDeldate())
                .append("delby", getDelby())
                .append("delflag", getDelflag())
                .append("createby", getCreateby())
                .append("updateby", getUpdateby())
                .toString();
    }
}
